import http from "@/utils/vmeitime-http/index.js";

// 供应商
export const login = (data) => http.post("/applet_user/login", data); // 供应商登录
export const loginOut = (data) => http.post("/applet_user/logout", data); // 供应商退出
// 获取验证码
export const getSupplierPhoneCode = (data) => http.get("/applet_user/getCode", data);
// 重置密码
export const resetPasswordSupplier = (data) => http.post("/applet_user/resetPassword", data);


// 门店
export const loginStore = (data) => http.post("/applet_shop/login", data); // 门店登录
// 获取验证码
export const getStorePhoneCode = (data) => http.get("/applet_shop/getCode", data);
// 重置密码
export const resetPasswordStore = (data) => http.post("/applet_shop/resetPassword", data);



// 店铺入驻
export const shopRegister = (data) => http.post("/applet_shop/shop/add", data);
export const shopRegisterEdit = (data) => http.post("/applet_shop/shop/audit", data);
// 静默登录code换取openid
export const getOpenId = (data) => http.post("/applet_shop/wx/code", data);
// 判断这个openid是否已经注册过
export const checkOpenIdisCreat = (data) => http.get("/applet_shop/wx/judge", data);
// 用openid换取店铺信息 
export const getShopInfo = (data) => http.get("/applet_shop/shop/info", data);